package com.example.demo.design.GoF.command.example;

/**
 * 命令模式
 *
 * @author luowj12
 * @since 2021/5/8 16:17
 */
public class CommandPattern {

    public static void main(String[] args) {
        Command cmd = new ConcreteCommand2();
        Invoker ir = new Invoker(cmd);
        System.out.println("客户访问调用者的call()方法...");
        ir.call();
    }

}
